﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGiCombinedRenderSettingsTraitsData : OdGiMentalRayRenderSettingsTraitsData
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGiCombinedRenderSettingsTraitsData(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGiCombinedRenderSettingsTraitsData obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGiCombinedRenderSettingsTraitsData()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGiCombinedRenderSettingsTraitsData(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public OdGiCombinedRenderSettingsTraitsData() : this(GlobalsPINVOKE.new_OdGiCombinedRenderSettingsTraitsData(), true)
		{
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setKindOfRenderSettings(uint nFlags)
		{
			GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_setKindOfRenderSettings(this.swigCPtr, nFlags);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public uint kindOfRenderSettings()
		{
			uint result = GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_kindOfRenderSettings(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void modifyKindOfRenderSettings(uint nFlags, bool bOp)
		{
			GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_modifyKindOfRenderSettings__SWIG_0(this.swigCPtr, nFlags, bOp);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void modifyKindOfRenderSettings(uint nFlags)
		{
			GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_modifyKindOfRenderSettings__SWIG_1(this.swigCPtr, nFlags);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool hasMentalRayRenderSettings()
		{
			bool result = GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_hasMentalRayRenderSettings(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool hasRapidRTRenderSettings()
		{
			bool result = GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_hasRapidRTRenderSettings(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsNotEqual(OdGiCombinedRenderSettingsTraitsData data2)
		{
			bool result = GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_IsNotEqual(this.swigCPtr, OdGiCombinedRenderSettingsTraitsData.getCPtr(data2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool IsEqual(OdGiCombinedRenderSettingsTraitsData data2)
		{
			bool result = GlobalsPINVOKE.OdGiCombinedRenderSettingsTraitsData_IsEqual(this.swigCPtr, OdGiCombinedRenderSettingsTraitsData.getCPtr(data2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		public enum KindOfRenderSettings
		{
			kMentalRaySettings = 1,
			kRapidRTSettings
		}
	}
}
